package com.ruoyi.zsyh.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单申请配件详情对象 zsyh_service_order_parts_rel
 * 
 * @author yuexl
 * @date 2022-09-06
 */
public class ZsyhServiceOrderPartsRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自购配件id */
    private String id;

    /** 订单id */
    @Excel(name = "订单id")
    private String orderId;

    /** 关联配件申请id serviceOrderPartsId */
    @Excel(name = "关联配件申请id serviceOrderPartsId")
    private String orderPartsId;

    /** 配件分类 afterPartsId */
    @Excel(name = "配件分类 afterPartsId")
    private String afterPartsId;

    /** 自购配件 给师傅的钱 */
    @Excel(name = "自购配件 给师傅的钱")
    private BigDecimal partsMoneyRepair;

    /** 自购配件 收取厂家的钱 */
    @Excel(name = "自购配件 收取厂家的钱")
    private BigDecimal partsMoneyFactory;

    /** 故障配件数量 */
    @Excel(name = "故障配件数量")
    private Long partsNum;

    /** 是否是自购件 1是 0否 */
    @Excel(name = "是否是自购件 1是 0否")
    private String isSelfParts;

    private String partsName;

    private String partsAttribute;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setOrderPartsId(String orderPartsId) 
    {
        this.orderPartsId = orderPartsId;
    }

    public String getOrderPartsId() 
    {
        return orderPartsId;
    }
    public void setAfterPartsId(String afterPartsId) 
    {
        this.afterPartsId = afterPartsId;
    }

    public String getAfterPartsId() 
    {
        return afterPartsId;
    }
    public void setPartsMoneyRepair(BigDecimal partsMoneyRepair) 
    {
        this.partsMoneyRepair = partsMoneyRepair;
    }

    public BigDecimal getPartsMoneyRepair() 
    {
        return partsMoneyRepair;
    }
    public void setPartsMoneyFactory(BigDecimal partsMoneyFactory) 
    {
        this.partsMoneyFactory = partsMoneyFactory;
    }

    public BigDecimal getPartsMoneyFactory() 
    {
        return partsMoneyFactory;
    }
    public void setPartsNum(Long partsNum) 
    {
        this.partsNum = partsNum;
    }

    public Long getPartsNum() 
    {
        return partsNum;
    }
    public void setIsSelfParts(String isSelfParts) 
    {
        this.isSelfParts = isSelfParts;
    }

    public String getIsSelfParts() 
    {
        return isSelfParts;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("orderId", getOrderId())
            .append("orderPartsId", getOrderPartsId())
            .append("afterPartsId", getAfterPartsId())
            .append("partsMoneyRepair", getPartsMoneyRepair())
            .append("partsMoneyFactory", getPartsMoneyFactory())
            .append("partsNum", getPartsNum())
            .append("isSelfParts", getIsSelfParts())
            .toString();
    }

    public String getPartsName() {
        return partsName;
    }

    public void setPartsName(String partsName) {
        this.partsName = partsName;
    }

    public String getPartsAttribute() {
        return partsAttribute;
    }

    public void setPartsAttribute(String partsAttribute) {
        this.partsAttribute = partsAttribute;
    }
}
